package com.rgs.se.design.factory.myabstract.factory.impl;


import com.rgs.se.design.factory.myabstract.factory.AbstractFactory;
import com.rgs.se.design.factory.myabstract.product.Air;
import com.rgs.se.design.factory.myabstract.product.Fan;
import com.rgs.se.design.factory.myabstract.product.Fridge;
import com.rgs.se.design.factory.myabstract.product.impl.MediaAir;
import com.rgs.se.design.factory.myabstract.product.impl.MediaFan;
import com.rgs.se.design.factory.myabstract.product.impl.MediaFridge;

/**
 * @author Ren Gaoshuai
 * @ClassName MediaFactory
 * @Description 美的工厂类
 * @date 2022-02-28 16:43
 **/
public class MediaFactory implements AbstractFactory {
    @Override
    public Air createAir() {
        return new MediaAir();
    }

    @Override
    public Fan createFan() {
        return new MediaFan();
    }

    @Override
    public Fridge creatFridge() {
        return new MediaFridge();
    }
}
